﻿using App.Code;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AppAit.Controllers
{
    [HandlerLogin]
    public class HomeController : Controller
    {
        // GET: Home
        public ActionResult Index()
        {
            try
            {
                ViewBag.UserCode = OperatorProvider.Provider.GetCurrent().UserCode;
            }
            catch (Exception)
            {

                ViewBag.UserCode = string.Empty;
            }
            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Default()
        {
            return View();
        }
    }
}